public class text5 {
    public static void main(String[] args) {
        int sum=getSum(10,20,30);
        int sum1=getSum(20,30,40);
        int sum2=getSum(20,30,40);
        int sum3=getSum(20,30,40);
        System.out.println(sum+sum1+sum3+sum2);
    } public static int getSum(int num1,int num2,int num3){
        int result=num1+num2+num3;
        System.out.println(result);
        return result;
    }
}
